<template>
    <div>
            <!-- {{form}} -->
            {{count}}
            <button @click="btn"> hujiok</button>
            <!-- <button @click="change">7</button> -->
    </div>
</template>
<script>
// import {reactive,ref} from 'vue'
import {ref} from 'vue'
import myaxios from "@/http/axios";
export default {
    setup(){
        // let form=reactive({'name':'123','password':'sdf'})
        let count=ref()
        //点击值改变
        // const change=()=>{
        //     form.name='zxc'
        //     count.value=12
        // }
        const btn=()=>{
            myaxios('test','get').then(res=>{
            count=res.list
            })
        }
        return{
            // form,
            count,
            // change,
            btn
            }
    }
}
</script>

<style scoped>

</style>